<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
$return=array();
/*******basic*******/
if($_RQ['op']=='basic'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('xieyi',$postdata);
		exi('设置成功');
	}
	$return['item']=$this->plugin_setting('xieyi');
	$htmls=array(
		'type'=>'edit',
		'desc'=>'检测协议',
		'edit'=>array(
			array('type'=>'switch','title'=>'是否启用','name'=>'isopen','isradio'=>1,'help'=>'启用后：会员下单显示出来，需要勾选【同意检测协议】，才能进行下单'),
			array('type'=>'string','title'=>'协议标题','name'=>'title','help'=>''),
			array('type'=>'richtext','title'=>'协议内容','name'=>'content','help'=>''),
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
